<?php


if(!empty($_GET["nome"])){
		
		$f=fopen("alunos","a+");
		$g_n=$_GET["nome"];
		fwrite($f.$g_n."\n");
}

?>

<?php


	if(file_exists("/var/www/especializa/aula07/".$nome_arqui)){
			
		$fl=fopen("alunos","r");
		while(!feof($fl)){
				
			$guar=fgets($fl,4000);
			$nome.=$guar."<br>";
			
		}	
		
	}




?>



<form method="GET" action="add.php">
<label>nome</label> 
	
	<input type="text" name="nome" >
	<input type="submit" value="enviar">
	<?php echo $nome?>
</form>



